package com.lejin.item.service.impl;

import com.lejin.item.entity.CourseComment;
import com.lejin.item.mapper.CourseCommentMapper;
import com.lejin.item.service.ICourseCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luminghua
 * @since 2022-04-20
 */
@Service
public class CourseCommentServiceImpl extends ServiceImpl<CourseCommentMapper, CourseComment> implements ICourseCommentService {
    @Autowired
    CourseCommentMapper commentMapper;

    @Override
    public List<CourseComment> findAllCommentAndUserByOutlineId(Integer oid) {

        List<CourseComment> allCommentAndUserByOutlineId = commentMapper.findAllCommentAndUserByOutlineId(oid);
        return allCommentAndUserByOutlineId;
    }
}
